//
//  HMTempViewController.swift
//  Faner_Weibo
//
//  Created by 范英强 on 16/1/26.
//  Copyright © 2016年 范英强. All rights reserved.
//

import UIKit

class HMTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
    }
    
    private func setupUI(){
        view.backgroundColor = UIColor.whiteColor()
        title = "当前第\(navigationController?.viewControllers.count ?? 0)个控制器"
        navigationItem.rightBarButtonItem = UIBarButtonItem( title: "PUSH", target: self, action: "push")

    }
    
    @objc private func push(){
        let vc = HMTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }


}
